From: Keir Fraser Date: Thu, 20 Dec 2007 10:44:06 +0000 (+0000) Subject: linux: Force build failure if modules build fails X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14445^2~106 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=58319a498355d380f2dd5170561a984a956e2a14;p=xen.git linux: Force build failure if modules build fails When building a linux kernel, if the modules build fails, then the build carries on regardless. The problem is simple - the "make modules" failure is not seen by the calling make since its return value is not what is returned. Signed-off-by: Mark McLoughlin --- diff --git a/buildconfigs/mk.linux-2.6-common b/buildconfigs/mk.linux-2.6-common index cd02d9ce43..2fa7052b2b 100644 --- a/buildconfigs/mk.linux-2.6-common +++ b/buildconfigs/mk.linux-2.6-common @@ -59,7 +59,7 @@ ifneq ($(XEN_LINUX_ALLOW_INTERFACE_MISMATCH),y) fi endif if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \ - $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) modules ; \ + $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) modules || exit 1 ; \ $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) INSTALL_MOD_PATH=$(DESTDIR) modules_install ; \ fi $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) INSTALL_PATH=$(DESTDIR) $(IMAGE_TARGET)